package mka.puzzle.shape;

import mka.puzzle.shape.SimpleShape;

/***
 * Rectangle
 * @version 20131124
 * 
 * @author NguyenBB
 */
public class SimpleRectangle extends SimpleShape {
	// Wide of Rectangle
	private double wide;

	// Height of Rectangle
	private double height;	

	public SimpleRectangle() {
		super();
		this.wide = 0;
		this.height = 0;
	}
	

	public SimpleRectangle(double wide, double height) {
		super();
		this.wide = wide;
		this.height = height;
	}

	public double getWide() {
		return wide;
	}

	public void setWide(double wide) {
		this.wide = wide;
	}

	public double getHeight() {
		return height;
	}

	public void setHeight(double height) {
		this.height = height;
	}
	
	public String getName() {
		return "Rectangle";
	}

	public double getPerimeter() {
		return (height + wide) * 2;
	}

	public double getArea() {
		return height * wide;
	}

}
